import strutils

proc after_speed_up_time(hour:int,minute:int,beisu:int):float = 
  return (hour * 60 + minute)/beisu

echo "请输入视频时长（小时)："
var hour = stdin.readline()
echo "请输入视频时长（分钟)："
var minute = stdin.readline()
echo "请输入倍速："
var beisu = stdin.readline()

var time = after_speed_up_time(parseInt(hour),parseInt(minute),parseInt(beisu))
echo "加速后" & $ time & "分钟"